/*
 * @Author: gaojinyu 1593026814@qq.com
 * @Date: 2023-12-13 16:37:34
 * @LastEditors: gaojinyu 1593026814@qq.com
 * @LastEditTime: 2023-12-19 15:48:04
 * @FilePath: \smart-community\src\library\index.js
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
import BoxTitleInLeft from '@/components/BoxTitleInLeft/index.vue'
import BoxTitleInCenter from '@/components/BoxTitleInCenter/index.vue'
import BoxTitleBig from '@/components/BoxTitleBig/index.vue'
import VCharts from '@/components/VCharts/index.vue'
import VCharts3D from '@/components/VCharts3D/index.vue'

    const components = [
      BoxTitleInLeft,
      BoxTitleInCenter,
      BoxTitleBig,
      VCharts,
      VCharts3D
    ];

    export default {
        install: app => {
            components.forEach(component => {
                // 在app上进行扩展，app提供 component directive 函数
                // 如果要挂载原型 app.config.globalProperties 方式
                console.log(component.name,'namename');
                app.component(component.name, component);
            });
        }
    };
